﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.WeeklyReport
{
    /// <summary>
    /// 工作事项实体
    /// </summary>
    [Table("WorkItems")]
    public class WorkItems : BaseEntity
    {
        /// <summary>
        /// 工作事项编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int WorkItemsId { get; set; }
        /// <summary>
        /// 工作事项序号
        /// </summary>
        public int WorkItemsNumber { get; set; }

        /// <summary>
        /// 工作事项内容
        /// </summary>
        public string WorkItemsContent { get; set; }

        /// <summary>
        /// 工作事项状态  true为已完成 false为执行中
        /// </summary>
        public bool WorkItemsState { get; set; }

        /// <summary>
        /// 工作事项类型  true为本周工作事项 false为下周预计工作事项
        /// </summary>
        public bool WorkItemsType { get; set; }
        #region 导航属性
        /// <summary>
        /// 周报信息编号
        /// </summary>
        public int weeklyInfoId { get; set; }
        public virtual WeeklyInfo weeklyInfo { get; set; }
        #endregion
    }


}
